﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 部门表
    /// </summary>
    [SugarTable("WareHouse.DEPModel", TableDescription = "部门")]
    public class DEPModel:BaseEntity
    {
        /// <summary>
        /// 部门编码
        /// </summary>
        [SugarColumn( IsPrimaryKey = true, ColumnDescription = "部门编码")]
        public string DepId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn( ColumnDescription = "部门名称")]
        public string DepName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(ColumnDescription = "上级部门编码",IsNullable =true)]
        public string? SuperiorDepID { get; set; }


        /// <summary>
        /// 部门级别顺序，0是最大的 级位依次顺加
        /// </summary>
        [SugarColumn(ColumnDescription = "部门级别顺序")]
        public int RankOrder { get; set; }
    }
}
